/**
 * Created by john on 16/8/24.
 */
angular.module("detail")
    .config(function ($routeProvider) {
        $routeProvider
            .when("/",{templateUrl:"./detail/home.html",
                controller:"Home"})
            .when("/product",{templateUrl:"./detail/product.html",
                controller:"Product"})
            .when("/about",{templateUrl:"./detail/about.html",
                controller:"About"})
            .otherwise({redirectTo:'/'})
    });